-
-
Notifications
You must be signed in to change notification settings - Fork 78.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix use of declarations after nested rules (deprecated in Sass 1.77.7) #40623
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👌
+1 |
🚢 |
@julien-deramond I'll wait until tomorrow for Dependabot. Then this PR should only include the fix. |
b4a3c0f
to
cd5b0fe
Compare
@julien-deramond Thank you for fixing the deprecation issue of sass! Is there any ETA when |
Unfortunately, we don't have a precise release date to communicate, as it'll depend on our availability. But it should be in a few days, hopefully 🙏 |
(Edit: After the creation of this PR,
sass@1.77.8
has been released, but it doesn't change anything to this PR that still can be merged as is.)Description
When using
sass@1.77.7
, we have some warnings when runningnpm run css
. More info at Sass: Breaking Change: Mixed Declarations.If we simply move some calls to mixins in our code, the warnings are not displayed anymore. The related files are:
scss/_modal.scss
scss/_reboot.scss
scss/_type.scss
A simple way to measure the possible impact is to compare the built
bootstrap.css
from themain
branch, and this branch:As it can be seen here, there's no impact as the mixins don't apply values to some siblings CSS rules for the same selector, so the order here is not important and will produce the same CSS bundle in the end.
Target release
This change is retro-compatible as it works with
sass@1.77.6
too. However, if we want to help folks, we might envisage to merge this PR, and then maybe release a v5.3.4 rather quickly? What do you think @twbs/css-review?Type of changes
Checklist
npm run lint
)Live previews
Related issues
Closes #40621